// [[ OnflowGenerator File UUID: b5773ff151c34094bfe83aea7eff140e  ]]
package com.itdct.onflow.system.dict.mapper;

import com.itdct.onflow.core.mapper.BaseMapper;
import com.itdct.onflow.core.vo.KeyLabelValueVo;
import com.itdct.onflow.system.dict.entity.SysDictEntity;
import com.itdct.onflow.system.dict.qo.SysDictSearchQo;
import com.itdct.onflow.system.dict.vo.SysDictDetailVo;
import com.itdct.onflow.system.dict.vo.SysDictListVo;

import org.apache.ibatis.annotations.Mapper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * @author DCTANT
 * @date 2025-09-01 14:43:30
 * @version 1.0
 * @description 系统字典查询工具
 */
@Mapper
public interface SysDictMapper extends BaseMapper<SysDictEntity> {
    @Nullable
    SysDictDetailVo findById(Long id);

    @NotNull
    List<SysDictListVo> findByList(SysDictSearchQo qo);

// [[ OnflowGenerator Range (- selectFunctions -) Start ]]
    @NotNull
    List<KeyLabelValueVo> selectCodeList(SysDictSearchQo qo);
        @NotNull
    List<KeyLabelValueVo> selectNameList(SysDictSearchQo qo);

    @NotNull List<SysDictEntity> findByCodePath(@NotNull String codePath, @Nullable String code);

// [[ OnflowGenerator Range (- selectFunctions -) End ]]

}
